(function(angular) {
	'use strict';
	angular.module("fs.router").config([ 'routerServiceProvider', function(routerServiceProvider) {
		var simpleConfig = {
			'test' : {
				'sample' : {
					'abstract' : true
				},
				'dashboardDemo' : {
					'panels' : {
						'__dependentFiles' : [ 'waf/js/common/service/dashboardPanelService.js', 
						                       'cda/js/${theme}/service/dashboardDemo/dashboardDemoService.js']
					}
				},
				'sampleCompany' : {
					'list' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'view' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'create' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'createContinue' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'createVerify' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'update' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'updateContinue' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'updateVerify' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'delete' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'deleteReject' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					},
					'deleteVerify' : {
						'__dependentFiles' : [ 'cda/js/${theme}/service/sampleCompany/sampleCompanyService.js' ],
					}
				}
			}
		};
		routerServiceProvider.setSimpleStates(simpleConfig, 'cda');
		
		var originalConfig = {
				'app_cda_test_sample_test1' : {
					url : '/test1',
					templateUrl : 'cda/view/DEFAULT/test/sample/sampleTest1.html',
					controller : 'cda.test.sample.test1Controller',
					controllerAs : 'vm',
					resolve : {
						dependencis : routerServiceProvider.lazyLoad(['cda/view/DEFAULT/test/sample/sampleTest1Controller.js'])/*,
					    layoutConfig : routerServiceProvider.preLoadLayoutConfig('do/waf/layout/limit/limitHome'),
					    i18nConfig : routerServiceProvider.preLoadI18nConfig('do/waf/layout/resource/limitHome'),
					    validatorConfig : routerServiceProvider.preLoadValidatorConfig('do/waf/validator/limit/limitHome'),
					    authService : routerServiceProvider.preLoadAuthorizationConfig('do/waf/authorization/limit/limitHome')*/
					}
				},
				'app_cda_test_sample_test2' : {
					url : '/test2',
					templateUrl : 'cda/view/DEFAULT/test/sample/sampleTest2.html',
					controller : 'cda.test.sample.test2Controller',
					controllerAs : 'vm',
					resolve : {
						dependencis : routerServiceProvider.lazyLoad(['cda/view/DEFAULT/test/sample/sampleTest2Controller.js'])/*,
					    layoutConfig : routerServiceProvider.preLoadLayoutConfig('do/waf/layout/limit/limitHome'),
					    i18nConfig : routerServiceProvider.preLoadI18nConfig('do/waf/layout/resource/limitHome'),
					    validatorConfig : routerServiceProvider.preLoadValidatorConfig('do/waf/validator/limit/limitHome'),
					    authService : routerServiceProvider.preLoadAuthorizationConfig('do/waf/authorization/limit/limitHome')*/
					}
				}
		};
		routerServiceProvider.setStates(originalConfig);
	} ]);
})(angular);
